package cn.lili.modules.order.trade.entity.enums;

import cn.hutool.core.text.CharSequenceUtil;

/**
 * 售后状态
 *
 * @author Chopper
 * @since 2020-08-20 15:39
 */
public enum AfterSaleStatusEnum {

    /**
     * 售后服务类型枚举
     */
    APPLY("申请中", "Under Review"),
    PASS("已通过", "Approved"),
    REFUSE("已拒绝", "Rejected"),
    BUYER_RETURN("待卖家收货", "Returned"),
    SELLER_CONFIRM("卖家确认收货", "Seller confirms receipt of goods"),
    SELLER_TERMINATION("卖家终止售后", "The seller has terminated the after-sales service"),
    BUYER_CANCEL("买家取消售后", "Buyer cancels after-sales service"),
    WAIT_REFUND("等待平台退款", "Waiting for seller refund"),
    COMPLETE("完成", "Completed");

    private final String description;
    private final String descriptionEnglish;

    AfterSaleStatusEnum(String description, String descriptionEnglish) {
        this.description = description;
        this.descriptionEnglish = descriptionEnglish;
    }

    public String description() {
        if (CharSequenceUtil.isNotBlank(this.descriptionEnglish)) {
            return this.descriptionEnglish;
        }
        return this.description;
    }


}
